/*
 * Project: BeatifIntredPlayer
 * Copyright © ByUsi
 * Source Code Repository: https://giitee.com/byusi/beatifintredplayer
 * include: DPlayer.min.css
 */

.piv {
    position: relative;
    background-color: #000;
    overflow: hidden;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.piv video {
    width: 100%;
    height: 100%;
    display: block;
}

.piv-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.piv-play, .piv-fullscreen {
    background: none;
    border: none;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    margin: 0 5px;
    transition: transform 0.2s ease;
}

.piv-play:hover, .piv-fullscreen:hover {
    transform: scale(1.1);
}

.piv-progress {
    flex-grow: 1;
    height: 5px;
    margin: 0 10px;
    cursor: pointer;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.piv-progress::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #00a1d6;
    border-radius: 50%;
    cursor: pointer;
}

.piv-volume {
    width: 80px;
    height: 5px;
    margin: 0 10px;
    cursor: pointer;
}

.piv-danmaku {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.piv-danmaku-item {
    position: absolute;
    white-space: nowrap;
    text-shadow: 1px 1px 2px #000;
    will-change: transform, opacity;
}

.piv-danmaku-scroll {
    top: 50%;
    transform: translateY(-50%);
}

.piv-danmaku-top {
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.piv-danmaku-bottom {
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.piv-info-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    max-width: 80%;
    z-index: 20;
}

.piv-info-panel .copyright {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9em;
}

.piv-info-panel a {
    color: #00a1d6;
    text-decoration: none;
}

.piv-info-panel a:hover {
    text-decoration: underline;
}

/* 错误提示样式 */
.piv-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    z-index: 100;
}

.error-icon {
    font-size: 2em;
    color: #ff4444;
    margin-bottom: 10px;
}

.error-message {
    font-size: 1.2em;
}